import utils from '../../core/utils';

export class userInfo {
  constructor(name?: string, passwd?: string) {
    if (!utils.isEmpty(name) && !utils.isEmpty(passwd)) {
      this.name = name;
      this.passwd = passwd;
      this.role = "user";
    }
  }

  id: string;
  face: string;
  name: string;
  passwd: string;
  email: string;
  role: string;
  token: string;
  collections: string;
}